From 5175ce39d8ff0b36e981a7a261f9196aa1879918 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Thu, 8 Mar 2018 11:10:52 +0000 Subject: [PATCH] sched/rt: Fix build after c/s c3715dd8fb766 Travis reports: sched_rt.c:241:30: error: unused function 'rt_dom' [-Werror,-Wunused-function] static inline struct rt_dom *rt_dom(const struct domain *dom) ^ 1 error generated. when compiling with Clang. Drop the function. Signed-off-by: Andrew Cooper Reviewed-by: George Dunlap Reviewed-by: Meng Xu --- xen/common/sched_rt.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c index 1c72ea831d..ac79f15dc3 100644 --- a/xen/common/sched_rt.c +++ b/xen/common/sched_rt.c @@ -238,11 +238,6 @@ static inline struct rt_vcpu *rt_vcpu(const struct vcpu *vcpu) return vcpu->sched_priv; } -static inline struct rt_dom *rt_dom(const struct domain *dom) -{ - return dom->sched_priv; -} - static inline struct list_head *rt_runq(const struct scheduler *ops) { return &rt_priv(ops)->runq; -- 2.30.2